package com.erp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
// 用户实体类
@TableName(value = "sys_user")
public class UserInfo implements Serializable {

//    @TableField(exist = false)
//    private static final long serialVersionUID = 1L;
//
//    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String loginname;
    private String address;
    private Integer sex;
    private String remark;
    private String pwd;
    private Integer deptid;
    private Date hiredate;
    private Integer mgr;
    private Integer available;
    private Integer ordernum;
    private Integer type;
    private String imgpath;
    private String salt;
    @TableField(exist = false)
    private String deptName;
}
